from django.contrib import admin
from StudentManage.models import *

# 学生信息后台页面
class StudentModel(admin.ModelAdmin):
    list_display = ['studentID', 'name', 'age', 'sex', 'score']
    search_fields = ['studentID', 'name', 'age', 'sex', 'score']
    list_filter = ['age', 'sex', 'score']
    ordering = ['studentID']

admin.site.register(Student, StudentModel)